"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GeoServerResponseError = void 0;
exports.getGeoServerResponseText = getGeoServerResponseText;
async function getGeoServerResponseText(response) {
    try {
        return response.text();
    }
    catch (e) {
    }
}
class GeoServerResponseError extends Error {
    constructor(message, geoServerOutput) {
        super(message);
        this.name = 'GeoServerResponseError';
        this.message = message || 'GeoServer Response Error';
        this.geoServerOutput = geoServerOutput;
    }
}
exports.GeoServerResponseError = GeoServerResponseError;
